package com.hqyj.css.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hqyj.css.mapper.HqyjStuMapper;
import com.hqyj.css.pojo.HqyjStu;

@Service
public class StuService {
	@Autowired
	HqyjStuMapper hsm;
	public List<HqyjStu> selectStu(){
		return hsm.selectByExample(null);
		 
	}
	public void deleteStu(Integer stuCode) {
		hsm.deleteByPrimaryKey(stuCode);
	}
	public void insertStu(HqyjStu hs) {
		hsm.insertSelective(hs);
	}
	public void updateStu(HqyjStu hs) {
		hsm.updateByPrimaryKeySelective(hs);
	}

}
